package org.jivesoftware.smack.filter;

import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Packet;

public class ThreadFilter
  implements PacketFilter
{
  private String thread;

  public ThreadFilter(String paramString)
  {
    if (paramString == null)
      throw new IllegalArgumentException("Thread cannot be null.");
    this.thread = paramString;
  }

  public boolean accept(Packet paramPacket)
  {
    return ((paramPacket instanceof Message)) && (this.thread.equals(((Message)paramPacket).getThread()));
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.jivesoftware.smack.filter.ThreadFilter
 * JD-Core Version:    0.6.1
 */